<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>

<?php
$index = 1;
foreach($lstDomain as $domain)
{
	$odd = ($index%2 == 1) ? "" : "odd";
	?>
	<tr  class="tr_domain <?php echo $odd; ?>">
		<td class="pad5 text-center" >
			<input type="checkbox" class="chkDomainItem" onclick="chkDomainItem();" />
		</td>
									
		<td class="pad5" >
			<?php echo $domain['name']; ?>
		</td>
		
		<td class="pad5" >
			<span>
				<?php echo $domain['domaingroup']; ?>
			</span>
			<input type="hidden" class="hddgcrc" value="<?php echo $domain['groupcrc'] ?>" />
		</td>
		
		<td class="pad5 text-center" >
			<?php echo $domain['price'];; ?>
		</td>
									
		<td class="pad5 text-right" >
			<?php echo ($domain['totalclick'] == '' || $domain['totalclick'] == -1) ? 'N/A' : number_format($domain['totalclick']); ?>
		</td>
		
		<td class="pad5 text-right" >
			<?php echo ($domain['realclick'] == '' || $domain['realclick'] == -1) ? 'N/A' : number_format($domain['realclick']); ?>
		</td>
									
		<td class="pad5 text-right" >
			<?php echo ($domain['totalview'] == '' || $domain['totalview'] == -1) ? 'N/A' : number_format($domain['totalview']); ?>
		</td>
		
		<td class="pad5 text-right" >
			<?php echo ($domain['ctr'] == -1 || $domain['ctr'] == '') ? 'N/A' : $domain['ctr']; ?>
		</td>
		
	</tr>
	<?php
	$index++;
	$stt++;
}
?>